<?php
	$names = getDBrow($_GET['picture'], 'profile');
	if (empty($names))
	{
		$incomplete = "Der Benutzer wurde nicht in der Datenbank gefunden! ";
		checkComplete($complete, $incomplete);
		die();
	}
?>

<div id="picture_bar">
	<a href="?profile=<?php echo $names['username']; ?>">
		<div class="picture_bar_back">
		<?php			
			if ($_SESSION['style'] == 1)
				echo '<img src="icon/light/back.png" alt="Settings-Back"/>';	
			else
				echo '<img src="icon/dark/back.png" alt="Settings-Back"/>';
		?>	
		</div>
	</a>
	<span class="picture_bar_headline">
	<?php
		echo $names['vorname']." ".$names['nachname']." - ".$names['username'];
	?>	
	</span>
</div>
<div id="picture_content">
	<img src="php/userimg/resize_<?php echo $names['profilepic']; ?>" alt="Fehler"/>
</div>